﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace WorkflowEngine.Entitys
{
    public class WorkflowApp : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        [Description("应用类别")]
        public string Category { get; set; }

        [Description("应用名称")]
        public string AppName { get; set; }

        [Description("编码")]
        public string AppCode { get; set; }

        [Description("应用的页面type")]
        public string Assembly { get; set; }

        [Description("单据格式FX2010010001,FX{yyyyMMdd}{D5}")]
        public string Format { get; set; }

        [Description("图标")]
        public string Icon { get; set; }

        public Guid? TenantId { get; set; }
        public void SetTenantId(Guid tenantId) => TenantId = tenantId;


        [Description("应用类型")]
        public AppType AppType { get; set; } = AppType.System;
     
        [Description("表单类型")]
        public FormType FormType { get; set; }

        public virtual List<ObjectApp> ObjectApps { get; set; } = new List<ObjectApp>();

    }
}
